<div class="indices form">
<?php
    if($this->Session->read('login')=='yes')
    {
        echo $this->Form->create('Index'); ?>
	    <fieldset>
		    <legend><?php echo __('Add Index'); ?></legend>
	    <?php
	    	echo $this->Form->input('IndicesID', array('label' => 'Index ID'));
		    echo $this->Form->input('IndexName', array('label' => 'Index Name','type' => 'select', 'options' => $indices));
		    echo $this->Form->input('Date', array('id'=>'datepicker', 'label' => 'Date of Input', 'type' => 'text'));
		    echo $this->Form->input('AssignStatus', array('label' => 'Assigned? (Tick for Yes)'));
		    echo $this->Form->input('AssignedPortfolios', array('label' => 'Assigned To? (Portfolios)','type' => 'select', 'options' => $portfolios));
		    echo $this->Form->input('Weighting', array('label' => 'Weighting','type' => 'text'));
		    echo $this->Form->input('Value', array('label' => 'Value', 'type' => 'text'));
	    ?>
	    </fieldset>
        <?php echo $this->Form->end(__('Submit')); ?>
    </div>
    <div class="actions">
	    <h3><?php echo __('Actions'); ?></h3>
	    <ul>
            <li><?php echo $this->Html->link(__('Back to Indices List'), array('action' => 'index')); ?></li>
	    </ul>
    </div>
<?php
}else
{
    ?>
    <p>You can't view the content in this page</p>
<?php
}
?>